{include file="public/header" /}



<div class="page">
    <form id="post_form" method="post" action="{:url('Returnmanage/edit',['refund_id'=>$return.refund_id])}">
        <table class="sc-default-table">
            <tbody>
            <tr class="noborder">
                <td class="required w120">退款单号</td>
                <td>{$return.refund_sn}</td>
                <td class="vatop tips"></td>
            </tr>
            <tr class="noborder">
                <td class="required w120">订单号</td>
                <td>
                    <a href="javascript:parent.scLayerOpen('{:url('Order/show_order',['order_id'=>$return.order_id])}','查看实物订单-{$return.order_sn}')">{$return.order_sn}</a>
                </td>
                <td class="vatop tips"></td>
            </tr>
            <tr class="noborder">
                <td class="required w120">{$Think.lang.refund_order_refund}</td>
                <td>
                    <input type="text" name="refund_amount" class="text input-float" value="{$return.refund_amount}" placeholder="请输入退款金额" />
                </td>
            </tr>
                <tr>
                    <td width="100" class="required">商品名称{$Think.lang.sc_colon}</td>
                    <td class="vatop rowform">{$return.goods_name}</td>
                    <td class="vatop tips"></td>
                </tr>
                <tr>
                    <td width="100" class="required">{$Think.lang.refund_buyer_message}{$Think.lang.sc_colon}</td>
                    <td class="vatop rowform">{$return.reason_info}</td>
                    <td class="vatop tips"></td>
                </tr>
                <tr>
                    <td width="100" class="required">退货说明{$Think.lang.sc_colon}</td>
                    <td class="vatop rowform">{$return.buyer_message}</td>
                    <td class="vatop tips"></td>
                </tr>
                <tr>
                    <td width="100" class="required">凭证上传{$Think.lang.sc_colon}</td>
                    <td class="vatop rowform">
                        {notempty name="pic_list"}
                        {foreach name="pic_list" item="val"}
                        {if $val}
                        <a href="{$Think.UPLOAD_SITE_URL}/{$Think.ATTACH_PATH}/refund/{$val}" data-lightbox="lightbox-image">
                            <img width="64" height="64" class="show_image" src="{$Think.UPLOAD_SITE_URL}/{$Think.ATTACH_PATH}/refund/{$val}"></a>
                        {/if}
                       {/foreach}
                      {/notempty}
                    </td>
                    <td class="vatop tips"></td>
                </tr>
                <tr>
                    <td width="100" class="required">处理意见{$Think.lang.sc_colon}</td>
                    <td>
                        <div class="onoff">
                            <label for="sina_isuse_show1" class="cb-enable selected" >同意</label>
                            <label for="sina_isuse_show0" class="cb-disable selected">拒绝</label>
                            <input id="sina_isuse_show1" name="examine_type" value="2" type="radio" checked="checked">
                            <input id="sina_isuse_show0" name="examine_type" value="3" type="radio">
                        </div>
                        <div>
                            <input name="return_type" class="checked" type="checkbox" value="1" /> 无需退货
                        </div>
                        <p class="hint">如果选择 无需退货，买家将不用退回原商品，提交后直接确认退款。</p>
                    </td>
                </tr>
                <tr class="noborder">
                    <td width="100" class="required"><label class="validation">{$Think.lang.refund_message}{$Think.lang.sc_colon}</label></td>
                    <td class="vatop rowform">
                        <textarea id="admin_message" name="admin_message" class="tarea"></textarea></td>
                    <td class="vatop tips"></td>
                </tr>

            </tbody>
            <tfoot>
                <tr class="tfoot">
                    <td colspan="15" ><a href="JavaScript:void(0);" class="btn" id="submitBtn"><span>审核</span></a></td>
                </tr>
            </tfoot>
        </table>
    </form>
</div>
<link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
<script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
<script type="text/javascript">
    $(function() {
        $("#submitBtn").click(function() {
            if ($("#post_form").valid()) {
                $("#post_form").submit();
            }
        });
        $('#post_form').validate({
            errorPlacement: function(error, element) {
                error.appendTo(element.parent().parent().prev().find('td:first'));
            },
            rules: {
                admin_message: {
                    required: true
                }
            },
            messages: {
                admin_message: {
                    required   : '{$Think.lang.refund_message_null}'
                }
            }
        });
    });
</script>